package ophiux.wechatpay.sdk.common.utils;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.Properties;



public class PropertyUtil {
	
	public static String getResWxValue(String property){
       // 读取配置文件
		Properties properties = new Properties();  
		System.out.println(PropertyUtil.class);
		InputStream inputStream = PropertyUtil.class.getResourceAsStream("/resources/weixin.properties");  
		BufferedReader bf = new BufferedReader(new InputStreamReader(inputStream));  
		try {
			properties.load(bf);
		} catch (IOException e) {
			e.printStackTrace();
		}  
		String value = properties.getProperty(property);
		return value;
	}

}
